<?php
header('Content-type: application/json');

if(isset($_GET["nodeId"])){
	$id = $_GET["nodeId"];
}

$dbh = new PDO("mysql:host=localhost;dbname=tree4sites", 'root', '');
$sth = $dbh->prepare('SELECT `id`,Fournisseur,Capacity,Frequence,lien_FH,`Polar._A`,`@IP A`,`Polar._B`,`@IP B`,`Sous-Bande`,`Tx power`,`Rx_Level`,`Config`  FROM `site` WHERE id = '.$id);
$sth->execute();
$row = $sth->fetch(PDO::FETCH_ASSOC);
echo json_encode($row);